[%if count($array)>0 %]
<table class="table table-hover">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center table_width_60">[%pack:public_pack-espcms_lable_select_name%]</th>
			<th class="text-center table_width_100 sort_field" sort-field="did">[%pack:public_pack-espcms_lable_id_name%]</th>
			<th class="text-center table_width_80 sort_field" sort-field="pid">[%pack:public_pack-espcms_lable_pid_name%]</th>
			<th class="text-center sort_field" sort-field="mid">[%pack:article_pack-espcms_article_model_title%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_type_typename%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_main_title%]</th>
			<th class="text-center">[%pack:public_pack-espcms_lable_addtime%]</th>
			<th class="text-center sort_field" sort-field="click">[%pack:article_pack-espcms_article_main_click%]</th>
			<th class="text-center">[%pack:public_pack-espcms_pic%]</th>
			<th class="text-center">[%pack:article_pack-espcms_article_main_ishtml%]</th>
			<th class="text-center">[%pack:public_pack-espcms_lable_status_name%]</th>
			[%if @this->power('addArticle') || @this->power('editArticle')%]
			<th class="text-center table_width_120">[%pack:public_pack-espcms_lable_control_name%]</th>
			[%/if%]
		</tr>
	</thead>
	<tbody id="sortable">
		[%forlist from=$array key=i%]
		<tr data-id="[%$array[i].did%]">
			<td class="text-center">
				<input type="checkbox" name="select_id" id="select_id_[%$array[i].did%]"class="select_id" value="[%$array[i].did%]"/>
			</td>
			<td class="text-center">[%$array[i].did%]</td>
			<td class="text-center espcms_celerity kill_copy" edit_id_attr="did" edit_id="[%$array[i].did%]" edit_val="[%$array[i].pid%]" edit_att="pid" edit_validation="^[\d]+$">[%$array[i].pid%]</td>
			<td class="text-center">[%$array[i].modelname%]</td>
			<td class="text-center">[%$array[i].typename%]</td>
			<td class="text-left text_eli selecticon" title="[%$array[i].title%]"><a target="_blank" href="[%$array[i].view%]" class="info_lightgray_line">[%$array[i].title%]</a></td>
			<td class="text-center">[%$array[i].addtime|espcms_timeformat(9)%]</td>
			<td class="text-center">[%$array[i].click%]</td>
			<td class="text-center">
				[%if $array[i].pic!=''%]
				<span class="espcms_icon_fa espcms_icon_fa-check text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-remove text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].ishtml==0%]<span class="text-ashes">[%pack:article_pack-espcms_article_main_ishtml_0%]</span>[%/if%]
				[%if $array[i].ishtml==1%]<span class="text-green">[%pack:article_pack-espcms_article_main_ishtml_1%]</span>[%/if%]
				[%if $array[i].ishtml==2%]<span class="text-red">[%pack:article_pack-espcms_article_main_ishtml_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].isclass==1%]
				<span class="espcms_icon_fa espcms_icon_fa-unlock-alt text-green f18" aria-hidden="true"></span>
				[%else%]
				<span class="espcms_icon_fa espcms_icon_fa-lock text-orange f18" aria-hidden="true"></span>
				[%/if%]
			</td>
			[%if @this->power('addArticle') || @this->power('editArticle')%]
			<td class="text-center kill_copy">
				[%if @this->power('addArticle')%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:article_pack-espcms_article_main_button_copy%]" tab_close="false" tab_url="[%$array[i].copy%]">[%pack:botton_pack-espcms_botton_copy%]</button>
				[%/if%]
				[%if @this->power('editArticle')%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:article_pack-espcms_article_main_button_edit%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
				[%/if%]
			</td>
			[%/if%]
		</tr>
		[%/forlist%]
	</tbody>
</table>
[%else%]
<table class="table table-hover" id="tablelist">
	<tbody>
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
</table>
[%/if%]